package com.ilongge.rank.generator.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 
 * @TableName cpu
 */
@TableName(value ="cpu")
public class Cpu implements Serializable {
    /**
     * 
     */
    @TableId
    private Integer id;

    /**
     * 
     */
    private String name;

    /**
     * 
     */
    private String mark;

    /**
     * 
     */
    private String stmark;

    /**
     * 
     */
    private BigDecimal tdp;

    /**
     * 
     */
    private BigDecimal clockSpeed;

    /**
     * 
     */
    private BigDecimal turboSpeed;

    /**
     * 
     */
    private String socket;

    /**
     * 
     */
    private Integer rank;

    /**
     * 
     */
    private Integer cores;

    /**
     * 
     */
    private Integer logicalCores;

    /**
     * 
     */
    private Integer samples;

    /**
     * 
     */
    private String nameR20;

    /**
     * 
     */
    private String markR20;

    /**
     * 
     */
    private String stmarkR20;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getName() {
        return name;
    }

    /**
     * 
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 
     */
    public String getMark() {
        return mark;
    }

    /**
     * 
     */
    public void setMark(String mark) {
        this.mark = mark;
    }

    /**
     * 
     */
    public String getStmark() {
        return stmark;
    }

    /**
     * 
     */
    public void setStmark(String stmark) {
        this.stmark = stmark;
    }

    /**
     * 
     */
    public BigDecimal getTdp() {
        return tdp;
    }

    /**
     * 
     */
    public void setTdp(BigDecimal tdp) {
        this.tdp = tdp;
    }

    /**
     * 
     */
    public BigDecimal getClockSpeed() {
        return clockSpeed;
    }

    /**
     * 
     */
    public void setClockSpeed(BigDecimal clockSpeed) {
        this.clockSpeed = clockSpeed;
    }

    /**
     * 
     */
    public BigDecimal getTurboSpeed() {
        return turboSpeed;
    }

    /**
     * 
     */
    public void setTurboSpeed(BigDecimal turboSpeed) {
        this.turboSpeed = turboSpeed;
    }

    /**
     * 
     */
    public String getSocket() {
        return socket;
    }

    /**
     * 
     */
    public void setSocket(String socket) {
        this.socket = socket;
    }

    /**
     * 
     */
    public Integer getRank() {
        return rank;
    }

    /**
     * 
     */
    public void setRank(Integer rank) {
        this.rank = rank;
    }

    /**
     * 
     */
    public Integer getCores() {
        return cores;
    }

    /**
     * 
     */
    public void setCores(Integer cores) {
        this.cores = cores;
    }

    /**
     * 
     */
    public Integer getLogicalCores() {
        return logicalCores;
    }

    /**
     * 
     */
    public void setLogicalCores(Integer logicalCores) {
        this.logicalCores = logicalCores;
    }

    /**
     * 
     */
    public Integer getSamples() {
        return samples;
    }

    /**
     * 
     */
    public void setSamples(Integer samples) {
        this.samples = samples;
    }

    /**
     * 
     */
    public String getNameR20() {
        return nameR20;
    }

    /**
     * 
     */
    public void setNameR20(String nameR20) {
        this.nameR20 = nameR20;
    }

    /**
     * 
     */
    public String getMarkR20() {
        return markR20;
    }

    /**
     * 
     */
    public void setMarkR20(String markR20) {
        this.markR20 = markR20;
    }

    /**
     * 
     */
    public String getStmarkR20() {
        return stmarkR20;
    }

    /**
     * 
     */
    public void setStmarkR20(String stmarkR20) {
        this.stmarkR20 = stmarkR20;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Cpu other = (Cpu) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getMark() == null ? other.getMark() == null : this.getMark().equals(other.getMark()))
            && (this.getStmark() == null ? other.getStmark() == null : this.getStmark().equals(other.getStmark()))
            && (this.getTdp() == null ? other.getTdp() == null : this.getTdp().equals(other.getTdp()))
            && (this.getClockSpeed() == null ? other.getClockSpeed() == null : this.getClockSpeed().equals(other.getClockSpeed()))
            && (this.getTurboSpeed() == null ? other.getTurboSpeed() == null : this.getTurboSpeed().equals(other.getTurboSpeed()))
            && (this.getSocket() == null ? other.getSocket() == null : this.getSocket().equals(other.getSocket()))
            && (this.getRank() == null ? other.getRank() == null : this.getRank().equals(other.getRank()))
            && (this.getCores() == null ? other.getCores() == null : this.getCores().equals(other.getCores()))
            && (this.getLogicalCores() == null ? other.getLogicalCores() == null : this.getLogicalCores().equals(other.getLogicalCores()))
            && (this.getSamples() == null ? other.getSamples() == null : this.getSamples().equals(other.getSamples()))
            && (this.getNameR20() == null ? other.getNameR20() == null : this.getNameR20().equals(other.getNameR20()))
            && (this.getMarkR20() == null ? other.getMarkR20() == null : this.getMarkR20().equals(other.getMarkR20()))
            && (this.getStmarkR20() == null ? other.getStmarkR20() == null : this.getStmarkR20().equals(other.getStmarkR20()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getMark() == null) ? 0 : getMark().hashCode());
        result = prime * result + ((getStmark() == null) ? 0 : getStmark().hashCode());
        result = prime * result + ((getTdp() == null) ? 0 : getTdp().hashCode());
        result = prime * result + ((getClockSpeed() == null) ? 0 : getClockSpeed().hashCode());
        result = prime * result + ((getTurboSpeed() == null) ? 0 : getTurboSpeed().hashCode());
        result = prime * result + ((getSocket() == null) ? 0 : getSocket().hashCode());
        result = prime * result + ((getRank() == null) ? 0 : getRank().hashCode());
        result = prime * result + ((getCores() == null) ? 0 : getCores().hashCode());
        result = prime * result + ((getLogicalCores() == null) ? 0 : getLogicalCores().hashCode());
        result = prime * result + ((getSamples() == null) ? 0 : getSamples().hashCode());
        result = prime * result + ((getNameR20() == null) ? 0 : getNameR20().hashCode());
        result = prime * result + ((getMarkR20() == null) ? 0 : getMarkR20().hashCode());
        result = prime * result + ((getStmarkR20() == null) ? 0 : getStmarkR20().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", mark=").append(mark);
        sb.append(", stmark=").append(stmark);
        sb.append(", tdp=").append(tdp);
        sb.append(", clockSpeed=").append(clockSpeed);
        sb.append(", turboSpeed=").append(turboSpeed);
        sb.append(", socket=").append(socket);
        sb.append(", rank=").append(rank);
        sb.append(", cores=").append(cores);
        sb.append(", logicalCores=").append(logicalCores);
        sb.append(", samples=").append(samples);
        sb.append(", nameR20=").append(nameR20);
        sb.append(", markR20=").append(markR20);
        sb.append(", stmarkR20=").append(stmarkR20);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}